const express = require('express')

const app = express()

const cors = require('cors')

app.use(cors())

const port = 5055

app.use('/api', require('./api/getAll'))
app.use('/api', require('./api/addStudent'))
app.use('/api', require('./api/deleteStudent'))
app.use('/api', require('./api/editStudent'))

app.listen(port, ()=>{console.log(`<<<<<<<<! success port in ${port} !>>>>>>>>\n http://localhost:${port}/api/`)})